package com.slz3.business.module.wmsManagement.wmsStockPut.steward;

import com.slz3.business.frame.response.RR;
import com.slz3.business.frame.response.ResInfo;
import com.slz3.business.module.wmsManagement.wmsStockPut.domain.WmsStockPut;
import com.slz3.business.module.wmsManagement.wmsStockPut.domain.WmsStockPutCondition;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

public class WmsStockPutResAtomic extends WmsStockPutResExecutor {

    public Mono<ServerResponse> add_$WmsStockPutUpdateLock(ServerRequest req, WmsStockPut wmsStockPut) {
        return WmsStockPutResSafeValid.add(req, wmsStockPut) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.add(req, wmsStockPut);
    }

    public Mono<ServerResponse> batchAdd_$WmsStockPutUpdateLock(ServerRequest req, WmsStockPut wmsStockPut) {
        return WmsStockPutResSafeValid.batchAdd(req, wmsStockPut) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.batchAdd(req, wmsStockPut);
    }

    public Mono<ServerResponse> delete_$WmsStockPutUpdateLock(ServerRequest req, WmsStockPutCondition wmsStockPutCondition) {
        return WmsStockPutResSafeValid.delete(req, wmsStockPutCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.delete(req);
    }

    public Mono<ServerResponse> modify_$WmsStockPutUpdateLock(ServerRequest req, WmsStockPut wmsStockPut) {
        return WmsStockPutResSafeValid.modify(req, wmsStockPut) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.modify(req, wmsStockPut);
    }

    public Mono<ServerResponse> info_$WmsStockPutUpdateLock(ServerRequest req) {
        return WmsStockPutResSafeValid.info(req) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.info(req);
    }

    public Mono<ServerResponse> auditSubmit_$WmsStockPutUpdateLock(ServerRequest req, WmsStockPutCondition wmsStockPutCondition) {
        return WmsStockPutResSafeValid.auditSubmit(req, wmsStockPutCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditSubmit(req);
    }

    public Mono<ServerResponse> audit_$WmsStockPutUpdateLock(ServerRequest req, WmsStockPutCondition wmsStockPutCondition) {
        return WmsStockPutResSafeValid.audit(req, wmsStockPutCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.audit(req);
    }

    public Mono<ServerResponse> auditReject_$WmsStockPutUpdateLock(ServerRequest req, WmsStockPutCondition wmsStockPutCondition) {
        return WmsStockPutResSafeValid.auditReject(req, wmsStockPutCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditReject(req);
    }


    public Mono<ServerResponse> usingEnable_$WmsStockPutUpdateLock(ServerRequest req, WmsStockPutCondition wmsStockPutCondition) {
        return WmsStockPutResSafeValid.usingEnable(req, wmsStockPutCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingEnable(req);
    }

    public Mono<ServerResponse> usingDisable_$WmsStockPutUpdateLock(ServerRequest req, WmsStockPutCondition wmsStockPutCondition) {
        return WmsStockPutResSafeValid.usingDisable(req, wmsStockPutCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingDisable(req);
    }
}
